package com.ks.service;

import com.ks.base.BaseService;
import com.ks.dao.ExamPaperStudentDao;
import com.ks.entity.ExamPaperStudent;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("examPaperStudentService")
public class ExamPaperStudentService<T> extends BaseService<T> {
    private final static Logger log = Logger.getLogger(ExamPaperStudentService.class);

    @Autowired
    private ExamPaperStudentDao<T> dao;

    public ExamPaperStudentDao<T> getDao() {
        return dao;
    }

    public void updateAnswersByQuestionid(Object o) {

        dao.updateAnswersByQuestionid(o);
    }

    public List<Map<String, String>> queryPaperUserQuestions(Object o) {
        return dao.queryPaperUserQuestions(o);
    }
}
